﻿
    public static class Default
    {
        public const string SECTION_NAME = "PZConf";
        public const string PH_NAME = "PHConf";

        //--------------------地图-----------------------------

        public static int Metre = 1;

        public static int MapLength = 200;

        public static int CanUseMapLength = 140;

        public static int MapCellWidthNum = CanUseMapLength / 3;

        public static int MapCellWidth = 3 * Metre;

        //---------------------------游戏-------------------------------
        /// <summary>
        /// 南瓜
        /// </summary>
        public static int MaxPumpkinNum = 2;

        /// <summary>
        /// 桃子
        /// </summary>
        public static int MaxPeachNum = 4;

        /// <summary>
        /// 包菜
        /// </summary>
        public static int MaxCabbageNum = 6;

        /// <summary>
        /// 青草
        /// </summary>
        public static int MaxGreenGrassNum = 10;

        /// <summary>
        /// 最大活力值
        /// </summary>
        public static int MaxVitality = 100;
        
        /// <summary>
        /// 南瓜
        /// </summary>
        public static int PumpkinScore = 10;

        /// <summary>
        /// 桃子
        /// </summary>
        public static int PeachScore = 8;

        /// <summary>
        /// 包菜
        /// </summary>
        public static int CabbageScore = 4;

        /// <summary>
        /// 青草
        /// </summary>
        public static int GreenGrassScore = 2;
        
        /// <summary>
        /// 南瓜
        /// </summary>
        public static int PumpkinVitality = 50;

        /// <summary>
        /// 桃子
        /// </summary>
        public static int PeachVitality = 30;

        /// <summary>
        /// 包菜
        /// </summary>
        public static int CabbageVitality = 20;

        /// <summary>
        /// 青草
        /// </summary>
        public static int GreenGrassVitality = 10;

        
        public static int GetMaxNumByType(MapItemType type)
        {
            switch (type)
            {
                case MapItemType.GreenGrass:
                    return MaxGreenGrassNum;
                case MapItemType.Cabbage:
                    return MaxCabbageNum;
                case MapItemType.Peach:
                    return MaxPeachNum;
                case MapItemType.Pumpkin:
                    return MaxPumpkinNum;
                default:
                    return 0;
            }
        }

        public static int GetVitalityByType(MapItemType type)
        {
            switch (type)
            {
                case MapItemType.Cabbage:
                    return CabbageVitality;
                case MapItemType.GreenGrass:
                    return GreenGrassVitality;
                case MapItemType.Peach:
                    return PeachVitality;
                case MapItemType.Pumpkin:
                    return PumpkinVitality;
                default:
                    return 0;
            }
        }

        public static int GetScoreByType(MapItemType type)
        {
            switch (type)
            {
                case MapItemType.Cabbage:
                    return CabbageScore;
                case MapItemType.GreenGrass:
                    return GreenGrassScore;
                case MapItemType.Peach:
                    return PeachScore;
                case MapItemType.Pumpkin:
                    return PumpkinScore;
                default:
                    return 0;
            }
        }

        // public static int VacuumCleanerTime = 20;
        //
        // public static int CleatTime = 20;

        public static int VacuumCleanerSpeed = 5;
        
        public static int VacuumCleanerRadius = 3;

        public static int TrainEasy = 1;
        
        public static int TrainDiff = 1;

        //----------------------资源------------------------------------

        public static string AssetPath = "Assets/Scenes/Game.unity";
    }
